package com.yanqu.road.entity.log.horserun;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

@FieldTypeAnnotation(tableName = "t_l_horse_run_replace_skill", autoSave = true, dataUpload = true, eventName = "horserun_gainrep",uploadCk = true,desc = "小马快跑替换技能日志")
public class HorseRunSkillReplaceLog extends ServerBaseLog {
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "孔位",dataAttribute = "horserun_hoid")
    private int position;
    @FieldTypeAnnotation(desc = "被更换上的技能id",dataAttribute = "horserun_gainid")
    private int newSkillId;
    @FieldTypeAnnotation(desc = "被换下的技能id",dataAttribute = "horserun_gainbeid")
    private int oldSkillId;
    @FieldTypeAnnotation(desc = "当前小马评分",dataAttribute = "horserun_score")
    private long nowGrade;


    public HorseRunSkillReplaceLog() {
    }

    public HorseRunSkillReplaceLog(int activityId, long userId, int position, int newSkillId, int oldSkillId, long nowGrade) {
        this.activityId = activityId;
        this.userId = userId;
        this.position = position;
        this.newSkillId = newSkillId;
        this.oldSkillId = oldSkillId;
        this.nowGrade = nowGrade;

    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public int getNewSkillId() {
        return newSkillId;
    }

    public void setNewSkillId(int newSkillId) {
        this.newSkillId = newSkillId;
    }

    public int getOldSkillId() {
        return oldSkillId;
    }

    public void setOldSkillId(int oldSkillId) {
        this.oldSkillId = oldSkillId;
    }

    public long getNowGrade() {
        return nowGrade;
    }

    public void setNowGrade(long nowGrade) {
        this.nowGrade = nowGrade;
    }


}
